package com.easy.frame.base.basic.pojo;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;

/**
 * 树状图基类
 *
 * @author zzf
 * @date 2020/7/30 11:09
 */
@Getter
@Setter
@ToString
public abstract class BaseTree implements Serializable {

    @ApiModelProperty("主键ID")
    private Long id;

    @ApiModelProperty("名字")
    private String name;

    @ApiModelProperty("短编码")
    private String path;

    @ApiModelProperty("父编码")
    private String parentPath;

    @ApiModelProperty("层级")
    private Integer level;

    @ApiModelProperty("排序")
    private Integer orderNum;

    @ApiModelProperty("是否叶节点 [0不是 1是]")
    private Boolean leafNode;

    @ApiModelProperty("是否启用 [0禁用 1启用]")
    private Integer enabled;


}
